<?php

namespace app\common\validate;
use think\Validate;

class StoreCate extends Validate
{

    /**
     * 验证规则
     */
    protected $rule = [
        'name'          => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [];

    /**
     * 字段描述
     */
    protected $field = [
        'name'          => '名称',
    ];

    protected $scene = [
        'add'   =>  ['name'],
        'edit'  =>  ['name'],
    ];
}
